# Maintainer: André Klitzing <aklitzing@gmail.com>
# Contributor: André Klitzing <aklitzing@gmail.com>
pkgname=toybox
pkgver=0.8.7
pkgrel=0
pkgdesc="A BSD-licensed alternative to busybox"
arch="all"
license="0BSD"
url="https://landley.net/toybox/"
depends="attr"
makedepends="bash linux-headers"
source="https://landley.net/toybox/downloads/toybox-$pkgver.tar.gz"

build() {
	scripts/genconfig.sh
	make defconfig
	make
}

check() {
	make test
}

package() {
	install -Dm755 toybox "$pkgdir"/bin/toybox
}

sha512sums="
a32a764c393edad55fe2e17120daf5b098e42886659a9dc15186db2795e980024be24c6276b4c5936733d3769a90bbf3918251c515450ec3eafb7a50ca8cc59f  toybox-0.8.7.tar.gz
"
